<template>
  <div class="flow-function">
    <!-- 		<div class="flow-btn top-menu-hover">
			<el-tooltip class="item" effect="dark" content="克隆" placement="top">
				<span class="iconfont iconbiaoge-piliangzengjia"></span>
			</el-tooltip>
    </div>-->
    <div class="flow-btn toolbtn top-menu-hover" @click="openFlowAttribute">
      <el-tooltip class="item" effect="dark" content="属性" placement="top">
        <span class="iconfont iconbiaodan-shuxing"></span>
      </el-tooltip>
    </div>
    <div class="flow-btn toolbtn top-menu-hover" @click="save">
      <el-tooltip class="item" effect="dark" content="保存" placement="top">
        <span class="iconfont iconbiaoge-baocun"></span>
      </el-tooltip>
    </div>
    <div class="flow-btn toolbtn top-menu-hover" @click="writeJson" v-show="false">
      <el-tooltip class="item" effect="dark" content="输出tableset" placement="top">
        <i class="el-icon-edit"></i>
      </el-tooltip>
    </div>
    <div class="flow-btn toolbtn top-menu-hover" @click="clone">
      <el-tooltip class="item" effect="dark" content="克隆流程" placement="top">
        <span class="iconfont iconliucheng-kelong1"></span>
      </el-tooltip>
    </div>

    <div class="flow-btn toolbtn top-menu-hover" @click="delflow">
      <el-tooltip class="item" effect="dark" content="删除流程" placement="top">
        <span class="iconfont">&#xe63e;</span>
      </el-tooltip>
    </div>

    <div class="flow-btn toolbtn top-menu-hover" @click="startflow" v-show="false">
      <el-tooltip class="item" effect="dark" content="启动" placement="top">
        <i class="el-icon-top-right"></i>
      </el-tooltip>
    </div>
    <div class="flow-btn toolbtn top-menu-hover" @click="sendflow" v-show="false">
      <el-tooltip class="item" effect="dark" content="流转" placement="top">
        <i class="el-icon-top-right"></i>
      </el-tooltip>
    </div>
  </div>
</template>

<script>
export default {
  components: {},
  data() {
    return {};
  },
  mounted() { },
  methods: {
    openFlowAttribute() {
      this.$emit("openFlowAttribute");
    },
    save() {
      this.$emit("save");
    },
    writeJson() {
      this.$emit("writeJson");
    },
    clone() {
      this.$emit("clone");
    },
    delflow() {
      this.$emit("delflow");
    },
    sendflow() {
      this.$emit("sendflow");
    },
    startflow() {
      this.$emit("startflow");
    },
  },
};
</script>

<style>
.flow-function {
  display: flex;
  width: 100%;
  height: 100%;
}

.flow-header {
  height: 31px;
  line-height: 31px;
  width: 100%;
  display: flex;
  padding: 0 10px;
  border-bottom: 1px solid rgba(215, 215, 215, 1);
}

.flow-btn {
  height: 31px;
  line-height: 31px;
  width: 30px;
  font-size: 18px;
}

.iconfont {
  font-size: 18px;
}
</style>
